package com.yoda.mall.mysql.api;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yoda.mall.api.PreferenceAreaApi;
import com.yoda.mall.model.entity.cms.PreferenceArea;
import com.yoda.mall.mysql.mapper.PreferenceAreaMapper;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author shawn
 * @date 2022年 12月 18日 19:36
 */
@DubboService
public class PreferenceAreaApiImpl implements PreferenceAreaApi {

    @Resource
    private PreferenceAreaMapper preferenceAreaMapper;
    @Override
    public List<PreferenceArea> getAllPreference() {
        return preferenceAreaMapper.selectList(new LambdaQueryWrapper<>());
    }
}
